<?php


class AdminAction extends Action{
	function addTime() {
		$result = D('User')->addTime($_REQUEST['usr_id'],$_REQUEST['day'],$_REQUEST['uat_datetime']);
		if ($result) {
			echo 'OK';
		}else{
			echo 'ERR';
		}
	}
	function index() {
		;
	}
	function indexz() {
		if ('GET'==$_SERVER['REQUEST_METHOD']) {
			$users = D('User')->order('usr_id','DESC')->select();
			$this->assign('lists',$users);
    		$this->display();
    	}else {
    		
    	}
	}
}
